<%@page contentType="text/html; charset=UTF-8" language="java"%>
<%
String orderId=(String)request.getParameter("orderId");
String orderAmount=(String)request.getParameter("orderAmount");
String dealId=(String)request.getParameter("dealId");
String orderTime=(String)request.getParameter("orderTime");
String payResult=(String)request.getParameter("payResult");
String msg=(String)request.getParameter("msg");

double monery = 0;
if(null !=  orderAmount && !"".equals(orderAmount)){
    monery = Double.parseDouble(orderAmount) / 100;
}
%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>JM Mobile</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
	<meta content="telephone=no" name="format-detection">
	<meta http-equiv="Expires" content="-1">
	<meta http-equiv="Cache-Control" content="no-cache">
	<meta http-equiv="Pragma" content="no-cache">
	<style >
		html{font-family: "Microsoft Yahei",Arial,"宋体",Helvetica,sans-serif;font-size: 12px;line-height: 1.6;color: #222222;background: #EFEFEF;overflow: hidden;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;-ms-touch-action: none;}
		* {-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}
		body {margin: 0;}
		.title{text-align: center;font-size: 22px;}
		.tab{width: 96%;margin: 0 2%;border: 1px solid #ccc;background: #fff;border-radius: 3px;text-align: center;border-collapse: collapse;color: #6C6C6C;font-size: 13px;}
		td{height:35px;}
		.returnBt{margin: 20px 2%;display: block;text-align: center;line-height: 35px;background: #FF6100;border-radius: 3px;box-shadow: 0 1px 2px #6F6F6F;font-size: 15px;color: #fff;}
		.tdR{word-wrap: break-word;max-width: 150px;}
		a{text-decoration: none;}
	</style>
</head>
<body >
	<h1 class="title">快钱支付结果</h1>
	<table class="tab" border="1">
		<tbody>
			<tr><td>快钱交易号</td><td class="tdR"><%=dealId%></td></tr>
			<tr><td>订单号</td><td class="tdR"><%=orderId%></td></tr>
			<tr><td>订单金额</td><td class="tdR"><%=monery%></td></tr>
			<tr><td>下单时间</td><td class="tdR"><%=orderTime%></td></tr>
			<tr><td>处理结果</td><td class="tdR">			
			<%
						String result = "支付失败";
						if(null != msg){
							if(msg.equals("success")){
								 result = "支付成功";
							}
							else if (msg.equals("error")){
								result = "鉴权失败";
							}
						}
			%>
			<%=result%></td></tr>
		</tbody>
	</table>

</body>
</html>